﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Web.UI;


    public class imsitemHierList : ArrayList, IHierarchicalEnumerable
    {

        // Summary:
        //     Returns a hierarchical data item for the specified enumerated item.
        //
        // Parameters:
        //   enumeratedItem:
        //     The System.Object for which to return an System.Web.UI.IHierarchyData.
        //
        // Returns:
        //     An System.Web.UI.IHierarchyData instance that represents the System.Object
        //     passed to the System.Web.UI.IHierarchicalEnumerable.GetHierarchyData(System.Object)
        //     method.
        public IHierarchyData GetHierarchyData(object enumeratedItem)
        {
            return (imsitemHier)enumeratedItem;

        }

        public imsitemHierList(List<imsitem> lstImsitem)
        {
            

            this.Clear();
            for (int i = 0; i < lstImsitem.Count; i++)
            {

                this.Add(new imsitemHier(lstImsitem[i]));
            }
            
        }
    }

